
# -*- coding: UTF-8 -*-
class BeanConn:
    """
    Bean 链接参数
    """

    def __init__(self, url: str, appKey: str, appSecret: str, port: int = None):
        self.url = url
        self.app_key = appKey
        self.app_secret = appSecret
        self.port = port


def init_ai_server(server):
    return BeanConn(server.uri, server.ftp_username, server.ftp_password,
                    server.ftp_port)
